#include <stdio.h>
#include <stdlib.h>
#include <math.h>

int main()
{
	double num, result;
	char ope;
	printf("Begin Calculations\n");
	while(1)
	{
		scanf("%lf %c", &num, &ope);
		switch (ope)
		{
			case 'S':
				result = num;
				break;
			case '+':
				result += num;
				break;
			case '-':
				result -= num;
				break;
			case  '*':
				result *= num;
				break;
			case '/':
				result /= num;
				break;
			case 'E':
				printf("=%lf\n", result);
				printf("End of Calculations.\n");
				return 0;
			default:
				printf("invalid input\n");
				return -1;
		}
		printf("=%lf\n", result);
	}
	return 0;
}